<?php
	class directory_path
	{
		public $base_url;
		public $img_no_avatar;
		public $img_no_thumb;
		public $img_logo_path, $img_no_logo_path;
		public $img_cover_path, $img_no_cover_path;		
		public $img_map_path, $img_no_map_path;
		public $img_cafe_gallery_path;
		public $img_cafe_product_path, $img_no_cafe_product_path;
		public $img_article_thumb_path;
		public $img_article_content_path;
		public $img_carousel_path;
		public $img_banner_path;		
		public $img_codeblock;	
		public $img_avatar_staff;	
		
		public $img_upload_cover_path;
		public $img_upload_logo_path;
		public $img_upload_cafe_gallery_path;
		public $img_upload_cafe_product_path;
		public $img_upload_cafe_map;
		public $img_upload_avatar_staff_path;		
		
		public $img_upload_carousel_path;
		public $img_upload_banner_path;		
		
		public $img_upload_article_thumb_path;		
		public $img_upload_article_content_path;
		
		function directory_path()
		{
			$this->base_url = 'http://' . $_SERVER['HTTP_HOST'] . '/lovekopica/';
			
			$this->img_logo_path = $this->base_url . 'uploads/logo/';
			$this->img_cover_path = $this->base_url . 'uploads/cover/';
			$this->img_map_path = $this->base_url . 'uploads/map/';
			
			$this->img_no_avatar = $this->base_url . 'images/error/no_img_avatar.png';
			$this->img_no_logo_path = $this->base_url . 'images/error/no_img_logo.png';		
			$this->img_no_cover_path = $this->base_url . 'images/error/no_img_cover.png';
			$this->img_no_map_path = $this->base_url . 'images/error/no_img_map.png';
			$this->img_no_cafe_product_path = $this->base_url . 'images/error/no_img_product.png';
			$this->img_codeblock = $this->base_url . 'images/error/no_img_130x130.png';			
			$this->img_no_thumb = $this->base_url . 'images/error/no_img_130x130.png';			
			
			$this->img_avatar_staff = $this->base_url . 'uploads/avatar/staff/';
			$this->img_cafe_gallery_path = $this->base_url . 'uploads/cafe/';
			$this->img_cafe_product_path = $this->base_url . 'uploads/product/';
			$this->img_article_thumb_path = $this->base_url . 'uploads/article/thumb/';
			$this->img_article_content_path = $this->base_url . 'uploads/article/content/';
			$this->img_carousel_path = $this->base_url . 'uploads/carousel/';
			$this->img_banner_path = $this->base_url . 'uploads/banner/';
			
			$this->img_upload_cover_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/cover/';
			$this->img_upload_logo_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/logo/';
			$this->img_upload_cafe_gallery_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/cafe/';
			$this->img_upload_cafe_product_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/product/';
			$this->img_upload_cafe_map = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/map/';
			$this->img_upload_avatar_staff_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/avatar/staff/';
			
			$this->img_upload_carousel_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/carousel/';
			$this->img_upload_banner_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/banner/';
			
			$this->img_upload_article_thumb_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/article/thumb/';
			$this->img_upload_article_content_path = $_SERVER['DOCUMENT_ROOT'] . '/lovekopica/uploads/article/content/';
		}
	}
?>